package com.small.site.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldNameConstants;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author  xiaochi
 * @date    2021/11/21 13:38
 * @desc    TestPojo
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_test")
@FieldNameConstants(onlyExplicitlyIncluded = true)
public class Test implements Serializable {
    private static final long serialVersionUID = 207628710987423669L;

    @Id
    @FieldNameConstants.Include
    private String id;
    @FieldNameConstants.Include
    private String name;
}
